using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class Aspnet_SchemaVersionsManagerBase
    {
        public Aspnet_SchemaVersionsManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>Aspnet_SchemaVersionsEntity</returns>
        public Aspnet_SchemaVersionsEntity Insert(Aspnet_SchemaVersionsEntity obj)
        { 
            return (Aspnet_SchemaVersionsEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>Aspnet_SchemaVersionsEntity</returns>
        public Aspnet_SchemaVersionsEntity Update(Aspnet_SchemaVersionsEntity obj)
        { 
            return (Aspnet_SchemaVersionsEntity)Adapter.Update(obj);             
        }
 
 
        public Aspnet_SchemaVersionsEntity Delete(Aspnet_SchemaVersionsEntity obj)
        { 
            return (Aspnet_SchemaVersionsEntity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CompatibleSchemaVersion duoc set trong object
        /// </summary>
        /// <returns>Aspnet_SchemaVersionsEntity</returns>
        public Aspnet_SchemaVersionsEntity DeleteByCompatibleSchemaVersion (Aspnet_SchemaVersionsEntity obj)
        { 
            return (Aspnet_SchemaVersionsEntity)Adapter.DeleteByField(obj,"CompatibleSchemaVersion");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CompatibleSchemaVersion 
        /// </summary>
        /// <returns>Aspnet_SchemaVersionsEntity</returns>
        public Aspnet_SchemaVersionsEntity DeleteByCompatibleSchemaVersion (string CompatibleSchemaVersion )
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.CompatibleSchemaVersion = CompatibleSchemaVersion;  
            return (Aspnet_SchemaVersionsEntity)Adapter.DeleteByField(obj,"CompatibleSchemaVersion");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Feature duoc set trong object
        /// </summary>
        /// <returns>Aspnet_SchemaVersionsEntity</returns>
        public Aspnet_SchemaVersionsEntity DeleteByFeature (Aspnet_SchemaVersionsEntity obj)
        { 
            return (Aspnet_SchemaVersionsEntity)Adapter.DeleteByField(obj,"Feature");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Feature 
        /// </summary>
        /// <returns>Aspnet_SchemaVersionsEntity</returns>
        public Aspnet_SchemaVersionsEntity DeleteByFeature (string Feature )
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.Feature = Feature;  
            return (Aspnet_SchemaVersionsEntity)Adapter.DeleteByField(obj,"Feature");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IsCurrentVersion duoc set trong object
        /// </summary>
        /// <returns>Aspnet_SchemaVersionsEntity</returns>
        public Aspnet_SchemaVersionsEntity DeleteByIsCurrentVersion (Aspnet_SchemaVersionsEntity obj)
        { 
            return (Aspnet_SchemaVersionsEntity)Adapter.DeleteByField(obj,"IsCurrentVersion");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IsCurrentVersion 
        /// </summary>
        /// <returns>Aspnet_SchemaVersionsEntity</returns>
        public Aspnet_SchemaVersionsEntity DeleteByIsCurrentVersion (bool IsCurrentVersion )
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.IsCurrentVersion = IsCurrentVersion;  
            return (Aspnet_SchemaVersionsEntity)Adapter.DeleteByField(obj,"IsCurrentVersion");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public Aspnet_SchemaVersionsEntity Select(Aspnet_SchemaVersionsEntity obj)
        { 
            return (Aspnet_SchemaVersionsEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Aspnet_SchemaVersionsEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Aspnet_SchemaVersionsEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new Aspnet_SchemaVersionsEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new Aspnet_SchemaVersionsEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Aspnet_SchemaVersionsEntity> SelectAllLST()
        { 
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Aspnet_SchemaVersionsEntity()),new Aspnet_SchemaVersionsEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Aspnet_SchemaVersionsEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Aspnet_SchemaVersionsEntity(),option),new Aspnet_SchemaVersionsEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien CompatibleSchemaVersion duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCompatibleSchemaVersion (Aspnet_SchemaVersionsEntity obj)
        { 
            return Adapter.SelectByField(obj,"CompatibleSchemaVersion");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CompatibleSchemaVersion duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCompatibleSchemaVersion (Aspnet_SchemaVersionsEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CompatibleSchemaVersion",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CompatibleSchemaVersion duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_SchemaVersionsEntity></returns>
        public List<Aspnet_SchemaVersionsEntity> SelectByCompatibleSchemaVersionLST (Aspnet_SchemaVersionsEntity obj)
        { 
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CompatibleSchemaVersion"),new Aspnet_SchemaVersionsEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CompatibleSchemaVersion duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_SchemaVersionsEntity></returns>
        public List<Aspnet_SchemaVersionsEntity> SelectByCompatibleSchemaVersionLST (Aspnet_SchemaVersionsEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CompatibleSchemaVersion",option),new Aspnet_SchemaVersionsEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CompatibleSchemaVersion 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCompatibleSchemaVersion (string CompatibleSchemaVersion )
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.CompatibleSchemaVersion = CompatibleSchemaVersion;  
            return Adapter.SelectByField(obj,"CompatibleSchemaVersion");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CompatibleSchemaVersion duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCompatibleSchemaVersion (string CompatibleSchemaVersion, SelectOptions option)
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.CompatibleSchemaVersion = CompatibleSchemaVersion;  
            return Adapter.SelectByField(obj,"CompatibleSchemaVersion",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CompatibleSchemaVersion 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_SchemaVersionsEntity> SelectByCompatibleSchemaVersionLST (string CompatibleSchemaVersion )
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.CompatibleSchemaVersion = CompatibleSchemaVersion;  
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CompatibleSchemaVersion"),new Aspnet_SchemaVersionsEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CompatibleSchemaVersion duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_SchemaVersionsEntity> SelectByCompatibleSchemaVersionLST (string CompatibleSchemaVersion, SelectOptions option)
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.CompatibleSchemaVersion = CompatibleSchemaVersion;  
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CompatibleSchemaVersion",option),new Aspnet_SchemaVersionsEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Feature duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByFeature (Aspnet_SchemaVersionsEntity obj)
        { 
            return Adapter.SelectByField(obj,"Feature");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Feature duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByFeature (Aspnet_SchemaVersionsEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Feature",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Feature duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_SchemaVersionsEntity></returns>
        public List<Aspnet_SchemaVersionsEntity> SelectByFeatureLST (Aspnet_SchemaVersionsEntity obj)
        { 
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Feature"),new Aspnet_SchemaVersionsEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Feature duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_SchemaVersionsEntity></returns>
        public List<Aspnet_SchemaVersionsEntity> SelectByFeatureLST (Aspnet_SchemaVersionsEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Feature",option),new Aspnet_SchemaVersionsEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Feature 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByFeature (string Feature )
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.Feature = Feature;  
            return Adapter.SelectByField(obj,"Feature");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Feature duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByFeature (string Feature, SelectOptions option)
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.Feature = Feature;  
            return Adapter.SelectByField(obj,"Feature",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Feature 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_SchemaVersionsEntity> SelectByFeatureLST (string Feature )
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.Feature = Feature;  
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Feature"),new Aspnet_SchemaVersionsEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Feature duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_SchemaVersionsEntity> SelectByFeatureLST (string Feature, SelectOptions option)
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.Feature = Feature;  
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Feature",option),new Aspnet_SchemaVersionsEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsCurrentVersion duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsCurrentVersion (Aspnet_SchemaVersionsEntity obj)
        { 
            return Adapter.SelectByField(obj,"IsCurrentVersion");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsCurrentVersion duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsCurrentVersion (Aspnet_SchemaVersionsEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"IsCurrentVersion",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsCurrentVersion duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_SchemaVersionsEntity></returns>
        public List<Aspnet_SchemaVersionsEntity> SelectByIsCurrentVersionLST (Aspnet_SchemaVersionsEntity obj)
        { 
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsCurrentVersion"),new Aspnet_SchemaVersionsEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsCurrentVersion duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_SchemaVersionsEntity></returns>
        public List<Aspnet_SchemaVersionsEntity> SelectByIsCurrentVersionLST (Aspnet_SchemaVersionsEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"IsCurrentVersion",option),new Aspnet_SchemaVersionsEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsCurrentVersion 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsCurrentVersion (bool IsCurrentVersion )
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.IsCurrentVersion = IsCurrentVersion;  
            return Adapter.SelectByField(obj,"IsCurrentVersion");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsCurrentVersion duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsCurrentVersion (bool IsCurrentVersion, SelectOptions option)
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.IsCurrentVersion = IsCurrentVersion;  
            return Adapter.SelectByField(obj,"IsCurrentVersion",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsCurrentVersion 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_SchemaVersionsEntity> SelectByIsCurrentVersionLST (bool IsCurrentVersion )
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.IsCurrentVersion = IsCurrentVersion;  
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsCurrentVersion"),new Aspnet_SchemaVersionsEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsCurrentVersion duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_SchemaVersionsEntity> SelectByIsCurrentVersionLST (bool IsCurrentVersion, SelectOptions option)
        { 
            Aspnet_SchemaVersionsEntity obj = new Aspnet_SchemaVersionsEntity();
            obj.IsCurrentVersion = IsCurrentVersion;  
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsCurrentVersion",option),new Aspnet_SchemaVersionsEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_SchemaVersionsEntity></returns>
        public List<Aspnet_SchemaVersionsEntity> SelectWithConditionLST (Aspnet_SchemaVersionsEntity obj)
        { 
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new Aspnet_SchemaVersionsEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_SchemaVersionsEntity></returns>
        public List<Aspnet_SchemaVersionsEntity> SelectWithConditionLST (Aspnet_SchemaVersionsEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_SchemaVersionsEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new Aspnet_SchemaVersionsEntity());
        }

}
}
